#include<stdio.h>
//#include<memory.h>
#include<stdlib.h>
#include<string.h>

#define MAX_SIZE 128

int main()
{
	char *p;
	int i = 1;
	int j = 1;
	p = malloc(MAX_SIZE * sizeof(char));
	memset(p, 0x2A, MAX_SIZE * sizeof(char));
	for(i; i < (MAX_SIZE * sizeof(char) + 1); i++)
	{
		printf("%c", p[i-1]);
		if(i % 64 == 0)
			printf("\n");
	}
	char *q = malloc(MAX_SIZE * sizeof(char));
	memcpy(q, p, 32);
	for(i = 1; j <= 32; i++)
	{
		printf("%c", p[i-1]);
		if(i % j == 0)
		{
			printf("\n");
			i = 0;
			j++;
		}
	}
	int m = memcmp(p, q, 32);
	printf("%d\n", m);
	free(p);
	free(q);
	return 0;
}


